package scsc.pub.data;

import java.io.Serializable;
import org.apache.commons.lang.builder.ToStringBuilder;


/** 
 *        @hibernate.class
 *         table="DEPARTMENT"
 *         schema="scsc"
 *         dynamic-update="true"
 *         dynamic-insert="true"
 *     
*/
public class Department implements Serializable {

    /** identifier field */
    private String deptcode;

    /** persistent field */
    private String deptname;

    /** persistent field */
    private String updeptcode;

    /** persistent field */
    private String address;

    /** persistent field */
    private String linkcode;

    /** persistent field */
    private String linkmantel1;

    /** persistent field */
    private String linkmantel2;

    /** persistent field */
    private String linkmanfax;

    /** persistent field */
    private String email;

    /** persistent field */
    private String ip;

    /** persistent field */
    private String state;
    
    /** nullable persistent field */
    private String jici;

    /** nullable persistent field */
    private String jibie;

    /** nullable persistent field */
    private String zhuguan;

    /** nullable persistent field */
    private String xingzhi;

    /** full constructor */
    public Department(String deptcode, String deptname, String updeptcode, String address, String linkcode, String linkmantel1, String linkmantel2, String linkmanfax, String email, String ip, String state, String jici, String jibie, String zhuguan, String xingzhi) {
        this.deptcode = deptcode;
        this.deptname = deptname;
        this.updeptcode = updeptcode;
        this.address = address;
        this.linkcode = linkcode;
        this.linkmantel1 = linkmantel1;
        this.linkmantel2 = linkmantel2;
        this.linkmanfax = linkmanfax;
        this.email = email;
        this.ip = ip;
        this.state = state;
        this.jici = jici;
        this.jibie = jibie;
        this.zhuguan = zhuguan;
        this.xingzhi = xingzhi;
    }

    /** default constructor */
    public Department() {
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="DEPTCODE"
     *         
     */
    public String getDeptcode() {
        return this.deptcode;
    }

    public void setDeptcode(String deptcode) {
        this.deptcode = deptcode;
    }

    /** 
     *            @hibernate.property
     *             column="DEPTNAME"
     *             length="60"
     *             not-null="true"
     *         
     */
    public String getDeptname() {
        return this.deptname;
    }

    public void setDeptname(String deptname) {
        this.deptname = deptname;
    }

    /** 
     *            @hibernate.property
     *             column="UPDEPTCODE"
     *             length="9"
     *             not-null="true"
     *         
     */
    public String getUpdeptcode() {
        return this.updeptcode;
    }

    public void setUpdeptcode(String updeptcode) {
        this.updeptcode = updeptcode;
    }

    /** 
     *            @hibernate.property
     *             column="ADDRESS"
     *             length="128"
     *             not-null="true"
     *         
     */
    public String getAddress() {
        return this.address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    /** 
     *            @hibernate.property
     *             column="LINKCODE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public String getLinkcode() {
        return this.linkcode;
    }

    public void setLinkcode(String linkcode) {
        this.linkcode = linkcode;
    }

    /** 
     *            @hibernate.property
     *             column="LINKMANTEL1"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getLinkmantel1() {
        return this.linkmantel1;
    }

    public void setLinkmantel1(String linkmantel1) {
        this.linkmantel1 = linkmantel1;
    }

    /** 
     *            @hibernate.property
     *             column="LINKMANTEL2"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getLinkmantel2() {
        return this.linkmantel2;
    }

    public void setLinkmantel2(String linkmantel2) {
        this.linkmantel2 = linkmantel2;
    }

    /** 
     *            @hibernate.property
     *             column="LINKMANFAX"
     *             length="30"
     *             not-null="true"
     *         
     */
    public String getLinkmanfax() {
        return this.linkmanfax;
    }

    public void setLinkmanfax(String linkmanfax) {
        this.linkmanfax = linkmanfax;
    }

    /** 
     *            @hibernate.property
     *             column="EMAIL"
     *             length="64"
     *             not-null="true"
     *         
     */
    public String getEmail() {
        return this.email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    /** 
     *            @hibernate.property
     *             column="IP"
     *             length="256"
     *             not-null="true"
     *         
     */
    public String getIp() {
        return this.ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    /** 
     *            @hibernate.property
     *             column="STATE"
     *             length="10"
     *             not-null="true"
     *         
     */
    public String getState() {
        return this.state;
    }

    public void setState(String state) {
        this.state = state;
    }

    
    /** 
     *            @hibernate.property
     *             column="jici"
     *             length="6"
     *         
     */
    public String getJici() {
        return this.jici;
    }

    public void setJici(String jici) {
        this.jici = jici;
    }

    /** 
     *            @hibernate.property
     *             column="jibie"
     *             length="6"
     *         
     */
    public String getJibie() {
        return this.jibie;
    }

    public void setJibie(String jibie) {
        this.jibie = jibie;
    }

    /** 
     *            @hibernate.property
     *             column="zhuguan"
     *             length="50"
     *         
     */
    public String getZhuguan() {
        return this.zhuguan;
    }

    public void setZhuguan(String zhuguan) {
        this.zhuguan = zhuguan;
    }

    /** 
     *            @hibernate.property
     *             column="xingzhi"
     *             length="6"
     *         
     */
    public String getXingzhi() {
        return this.xingzhi;
    }

    public void setXingzhi(String xingzhi) {
        this.xingzhi = xingzhi;
    }
    
    public String toString() {
        return new ToStringBuilder(this)
            .append("deptcode", getDeptcode())
            .toString();
    }
}
